import request from './request'

export const http = {
  get: (url, params) => {
    return request({
      url,
      method: 'get',
      params
    })
  },
  
  post: (url, data) => {
    return request({
      url,
      method: 'post',
      data
    })
  },
  
  put: (url, data) => {
    return request({
      url,
      method: 'put',
      data
    })
  },
  
  delete: (url, data) => {
    return request({
      url,
      method: 'delete',
      data
    })
  }
}

export default http